<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ModifyMemberInformationFieldToAddQq extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('member_informations', function (Blueprint $blueprint) {
            $blueprint->string('contact_qq')->nullable()->comment('联系人 QQ');
        });

        Schema::table('stores', function (Blueprint $blueprint) {
            $blueprint->boolean('status')->default(true)->comment('店铺状态');
        });

        Schema::table('goods', function (Blueprint $blueprint) {
            $blueprint->boolean('strict_lock')->default(false)->comment('该值若为 TRUE 表示商品被违禁下架');
            $blueprint->boolean('strict_lock_note')->nullable()->comment('违禁下架原因');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
